package com.xawl.dao;

import com.xawl.pojo.CourseLearning;
import com.xawl.pojo.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper {

    //获取总记录数
    Integer getTotal();

    int addCourse(CourseLearning cl);

    int deleteCourse(@Param("id") int id);

    int deleteCourses(Long[] ids);

    int updateCourse(CourseLearning c);

    //获取所有list
    List<CourseLearning> getAll();

    List<CourseLearning> queryAll();

    CourseLearning findCourseById(@Param("id")int id);
}
